<script setup lang="ts">
</script>

<template>
  <div class="common-layout">
    <el-container class="el-container is-vertical">
      <AppHeader />
      <el-main>
        <slot />
      </el-main>
      <AppFooter />
    </el-container>
  </div>
</template>

<style scoped lang="scss">
.common-layout {
  box-sizing: border-box;
  background-image: url('/images/default_bg.webp');
  background-size: 100% auto;
  background-position: 200px bottom;
  background-repeat: no-repeat;
  min-width: 800px;
  height: 100%;

  .el-container {
    width: 100%;
    height: 100%;

    .el-header,
    .el-footer,
    .el-main {
      display: inline-flex;
      justify-content: center;
      align-items: center;
      box-sizing: border-box;
      width: 100%;
    }

    .el-header {
      justify-content: start;
      background: #000000;
      color: #ffffff;
      height: 60px;
      border-bottom: solid 1px var(--el-menu-border-color);
      overflow: hidden;
      box-shadow: 0 0 1px #4d4d4d;
    }

    .el-main {
      height: 100%;
      min-height: calc(100vh - 360px);
      --el-main-padding: 0;
      padding: 0;
    }

    .el-footer {
      background: #4d4d4d;
      color: #ffffff;
      height: 300px;
      background: linear-gradient(to top, #000000, #000000 150px, rgba(255, 255, 255, 0));
      align-items: flex-end;
      font-size: 14px;
      text-align: center;
    }
  }
}
</style>